package com.hullbreach.rogue;

public enum Tile {
	EMPTYSPACE(1, "Meaningless Void"),
	FLOOR(2, "A metallic floor."),
	WALL(3, "A boring wall."),
	DOOR(4, "A sexy door."),
	BREACH(5, "A hull breach."),
	BOUNDS(6, "If you go that far you'll never get back"),
	UNKNOWN(7, "unknown");
	
	private int globalTileId;
	public int globalTileId() { return globalTileId; }

	private String description;
	public String details(){ return description; }
	
	Tile(int globalTileId, String description){
		this.globalTileId = globalTileId;
		this.description = description;
	}

	public boolean isGround() {
		return this != WALL && this != BOUNDS;
	}

	public boolean isDiggable() {
		return this == Tile.WALL;
	}
}